<!-- header -->
<header id="header" class="bg-white">
  <div class="row b-b padder padder-v text-center">
    <div class="col-md-3"> 
      <a href="<?php echo site_url(); ?>" class="m-l">
        <img src="<?php echo TEMPLATE_SITE_PATH; ?>images/logo-dark.png" class="img-logo">
      </a>
    </div>
    <?php include_once(TEMPLATE_PATH.'includes/ads_top.php'); ?>
    <div class="col-md-3 text-left">
      <a href="<?php echo site_url('new-ads'); ?>" class="btn btn-success btn-perspective">Free Post</a>
    <?php if($this->session->userdata('isSiteLogin')): ?>
      <a href="<?php echo site_url('logout'); ?>" class="btn btn-danger btn-perspective">Sign Out</a>

      <div class="dropdown pull-left m-r-lg">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
          <span class="thumb-sm avatar pull-left m-r-sm">
            <img src="<?php echo base_url(UPLOAD_PATH . ($this->session->userdata('userPhoto') ? 'users/75x75/' . $this->session->userdata('userPhoto') : IMAGE_DEFAULT)); ?>" alt="">
          </span>
          <span class="hidden-nav-xs clear"></span>
          <strong><?php echo $this->session->userdata('userName'); ?></strong> <b class="caret caret-white"></b>
        </a>
        <ul class="dropdown-menu animated fadeInRight m-t-xs">
          <span class="arrow top hidden-nav-xs"></span>
          <li><a href="<?php echo site_url('account/profile'); ?>" title="Profile">Profile</a></li>
          <li><a href="<?php echo site_url('account/change-password'); ?>" title="Change Password">Change Password</a></li>
          <li><a href="<?php echo site_url('account/update'); ?>" title="Update Profile">Update Profile</a></li>
          <li><a href="<?php echo site_url('view-ads'); ?>" title="Manage Ads">Manage Ads</a></li>
          <li><a href="<?php echo site_url('job/view'); ?>" title="Manage Jobs">Manage Jobs</a></li>
        </ul>
      </div>
    <?php else: ?>
      <a href="<?php echo site_url('register'); ?>" class="btn btn-danger btn-perspective">Sign Up</a> 
      <a href="<?php echo site_url('login'); ?>" class="btn btn-info btn-perspective">Sign in</a>
    <?php endif; ?>
    </div>
  </div>
</header>
<!-- / header -->
